// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

// swift-tools-version: 6.2
import PackageDescription

let package = Package(
    name: "OTOpusFrameWork",
    products: [
        .library(
            name: "OTOpusFrameWork",
            targets: ["OTOpusFrameWork"]
        ),
    ],
    dependencies: [
        // 添加远程SPM库（示例：添加Alamofire网络库）
        .package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.8.0")
    ],
    targets: [
        .target(
            name: "OTOpusFrameWork",
            dependencies: [
                // 依赖远程库（如果需要在主库中使用）
                .product(name: "Alamofire", package: "Alamofire")
            ]
        ),
        // 添加测试目标
        .testTarget(
            name: "OTOpusFrameWorkTests",
            dependencies: [
                "OTOpusFrameWork",  // 依赖主库
                .product(name: "Alamofire", package: "Alamofire")  // 测试中如需使用远程库
            ]
        )
    ]
)
